package com.system.service.impl;

import com.system.service.UserService;
import com.system.service.dao.mapper.UserMapper;
import com.system.service.dao.model.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lenovo on 2016/3/9.
 */
@Service
public class UserServiceImpl implements UserService  {

     @Resource
    UserMapper userMapper;
    @Override
    public User getUser(String id) {
        return userMapper.selectByPrimaryKey(id);
    }
    @Override
    public int Insert(User user) {




        return    userMapper.insertSelective(user);
    }
}
